﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PPreMemberEdit.aspx.cs" Inherits="Gmis.Web.Manage.Party.PPreMemberEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
       <script type="text/javascript">
           function uploadifyComplete(event, queueId, fileObj, response, data) {
               //DWZ.ajaxDone(DWZ.jsonEval(response));
               var obj = DWZ.jsonEval(response);
               document.getElementById("idImg").src = obj.msg;
               document.getElementById("txt_sPicture").value = obj.msg;
           }
    </script> 
</head>
<body>
    <div class="pageContent">
        <form method="post" action="Party/PPreMemberHandler.ashx" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <div class="pageFormContent" layoutH="56">

            <input type="hidden" name="txt_sId" value="<%=sId %>" />
            <input type="hidden" name="action" value="<%=action %>" />       
                <p>
                    <label>编号</label><input type="text" name="txt_sNumber" value="<%=model.sNumber %>" class="required" />
                </p>
                <p>
                    <label>姓名</label><input type="text" name="txt_sName" value="<%=model.sName %>" class="required" />
                </p>
                <p>
                    <label>身份证号</label><input type="text" name="txt_sIdentity" class="required idcard" value="<%=model.sIdentity %>"/>                 
                </p>
                <p>
                    <label>家庭出身</label><input type="text" name="txt_sOrigin" value="<%=model.sOrigin %>"/>
                </p>

                <p>
                  <label>性别</label>
                  <select name="cbx_sSex" class="required combox">                        
                        <%= GetSexData(model.sSex) %>     
                  </select>
                </p>

                <p>
                  <label>民族</label>
                  <select name="cbx_sNation" class="required combox">                
                   <%= GetNationData(model.sNation) %>      
                </select>                
                </p>

                <p>
                    <label>学历</label>
                    <select name="cbx_sEducation" class="required combox">                
                       <%= GetEducationData(model.sEducation) %>     
                    </select>                    
                </p>

                <p>
                    <label>本人成分</label><input type="text" name="txt_sComposition" value="<%=model.sComposition %>"/>
                </p>

                <p>
                    <label>职业</label><input type="text" name="txt_sWork" value="<%=model.sWork %>"/>                 
                </p>

                <p>
                    <label>参加工作时间</label><input type="text" name="txt_dJoinWork" class="required date" yearstart="-80" yearend="5" value="<%= model.dJoinWork.ToString("yyyy-MM-dd") %>"/><a class="inputDateButton" href="javascript:;">选择</a>
                </p>

                <p>
                    <label>职务</label><input type="text" name="txt_sPosition" value="<%=model.sPosition%>"/>                 
                </p>     

                <p>
                    <label>联系方式</label><input type="text" name="txt_sMobile" value="<%= model.sMobile %>"/>
                </p>

               <p>
                    <label>申请时间</label><input type="text" name="txt_dApply" class="required date" yearstart="-80" yearend="5" value="<%= model.dApply.ToString("yyyy-MM-dd") %>"/><a class="inputDateButton" href="javascript:;">选择</a>
                </p>

                 <p>
                    <label>确定入党积极分子时间</label><input type="text" name="txt_dConfirm" class="required date" yearstart="-80" yearend="5" value="<%= model.dConfirm.ToString("yyyy-MM-dd") %>"/><a class="inputDateButton" href="javascript:;">选择</a>
                </p>

                <dl  class="nowrap">
                    <dt>籍贯</dt><dd><input type="text" name="txt_sNative" size="96" value="<%= model.sNative %>"/></dd>
                </dl>

                <dl class="nowrap">
			        <dt>主要工作经历：</dt>
			        <dd><textarea name="txt_sWorkExperience" cols="70" rows="8"  text="<%= model.sWorkExperience %>"></textarea></dd>
		        </dl>

                <p>
                    <label>培养考察人一</label><input type="text" name="txt_sSurvey1" value="<%=model.sSurvey1%>"/>                 
                </p> 

                <p>
                    <label>培养考察人二</label><input type="text" name="txt_sSurvey2" value="<%=model.sSurvey2%>"/>                 
                </p>


             
                <dl class="nowrap">
				   <dt>个人照片：</dt>
				   <dd>                  
                        <input type="hidden" id="txt_sPicture" name="txt_sPicture" />
                         <img id="idImg" width="100px" height="120px" src="<%= Gmis.Public.CommonFunction.GetPMemberPath() + model.sPicture %>"/>
                         <span id="fileQueue" class="fileQueue"></span>
                         <input id="testFileInput" type="file" name="image" 
                               uploader="../Scripts/uploadify/scripts/uploadify.swf"
                               cancelImg="../Scripts/uploadify/cancel.png" 
                               script="UploadFile.ashx?action=pmember"                                
                               fileQueue="fileQueue"
                               onAllComplete="uploadifyComplete" 
                               fileExt="*.jpg;*.jpeg;*.gif;*.png;"
                               fileDesc="*.jpg;*.jpeg;*.gif;*.png;"/>
                   </dd>
                </dl>
			
         </div>      
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent"><button type="submit">提交</button></div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent"><button type="button" class="close">关闭</button></div>
                    </div>
                </li>
            </ul>
        </div>
        </form>
    </div>
</body>
</html>
